package com.ljf.daily.softwareautorecord.web;

import com.ljf.common.exception.ServiceException;
import com.ljf.common.result.ResultModel;
import com.ljf.common.utils.DateUtil;
import com.ljf.common.web.BasisController;
import com.ljf.daily.softwareautorecord.dto.command.DailyDatSoftwareAutoRecordCommand;
import com.ljf.daily.softwareautorecord.dto.query.DailyDatSoftwareAutoRecordQuery;
import com.ljf.daily.softwareautorecord.service.IDailyDatSoftwareAutoRecordService;
import com.ljf.daily.softwareautorecord.vo.DailyDatSoftwareAutoRecordVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 赚钱软件自动记录  控制器
 *
 * @author LJF
 * @since 2024-12-14
 */
@RestController
@RequestMapping("/daily/dat/software_auto_record")
@Api(value = "赚钱软件自动记录接口", tags = "赚钱软件自动记录接口")
public class DailyDatSoftwareAutoRecordController extends BasisController<IDailyDatSoftwareAutoRecordService, DailyDatSoftwareAutoRecordQuery, DailyDatSoftwareAutoRecordVO, DailyDatSoftwareAutoRecordCommand> {

    @GetMapping("/template")
    @ApiOperation(value = "获取模板")
    public ResultModel queryTemplate(String date, String symbolCode) throws ServiceException {
        return service.queryTemplate(DateUtil.parseDate(date), symbolCode);
    }

    @GetMapping("/symbol")
    @ApiOperation(value = "查询赚钱软件自动记录标签接口")
    public ResultModel querySymbol() throws ServiceException {
        return service.querySymbol();
    }

}